package com.rceeslca.modules.security.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统用户Token
 * @author rceeslca
 */
@Data
@TableName("sys_user_token")
public class SysUserTokenEntity implements Serializable {

    private static final long serialVersionUID = 3084716078705152562L;

    /**id**/
    @TableId
    private Long id;

    /**用户ID**/
    private Long userId;

    /**用户token**/
    private String token;

    /**过期时间**/
    private Date expireDate;

    /**更新时间**/
    private Date updateDate;

    /**创建时间**/
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

}
